<?php
/*
 * Copyright (c) 2017-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
namespace TencentCloud\Mdp\V20200527\Models;
use TencentCloud\Common\AbstractModel;

/**
 * Linear assembly channel alarm return information.
 *
 * @method array getProgramAlertCounts() Obtain Program alarm aggregation information.
 * @method void setProgramAlertCounts(array $ProgramAlertCounts) Set Program alarm aggregation information.
 * @method array getProgramAlertInfos() Obtain Program alarm details.
 * @method void setProgramAlertInfos(array $ProgramAlertInfos) Set Program alarm details.
 */
class ChannelAlertResp extends AbstractModel
{
    /**
     * @var array Program alarm aggregation information.
     */
    public $ProgramAlertCounts;

    /**
     * @var array Program alarm details.
     */
    public $ProgramAlertInfos;

    /**
     * @param array $ProgramAlertCounts Program alarm aggregation information.
     * @param array $ProgramAlertInfos Program alarm details.
     */
    function __construct()
    {

    }

    /**
     * For internal only. DO NOT USE IT.
     */
    public function deserialize($param)
    {
        if ($param === null) {
            return;
        }
        if (array_key_exists("ProgramAlertCounts",$param) and $param["ProgramAlertCounts"] !== null) {
            $this->ProgramAlertCounts = [];
            foreach ($param["ProgramAlertCounts"] as $key => $value){
                $obj = new ProgramAlertCounts();
                $obj->deserialize($value);
                array_push($this->ProgramAlertCounts, $obj);
            }
        }

        if (array_key_exists("ProgramAlertInfos",$param) and $param["ProgramAlertInfos"] !== null) {
            $this->ProgramAlertInfos = [];
            foreach ($param["ProgramAlertInfos"] as $key => $value){
                $obj = new ProgramAlertInfos();
                $obj->deserialize($value);
                array_push($this->ProgramAlertInfos, $obj);
            }
        }
    }
}
